<template>
	<view class="container">
		<div class="imgBox" v-if="filename">
			<image :src="imgLink + '' + filename" mode="widthFix"></image>
			
			
		</div>
		
		
	</view>
</template>

<script>
	const db = wx.cloud.database()
	export default {
		name: 'headcomd',
		data() {
			return {
				
				imgid: '',
				filename: '',
				imgLink: 'https://www.baixuemianshi.com/zhuanti/upload_img/upload/',
				
			};
		},
		onShareAppMessage(options) {},
		onLoad(options) {
			this.imgid = options.imgid
		},
		computed: {
			
		},
		mounted() {
			let that = this
			this.getImg()
			
		},
		created() {
			let that = this;
			
		},
		methods: {
			getImg(){
				let that = this
				db.collection('nbhd_photowall_images').doc(that.imgid).get({
					success:function(res){
						that.filename = res.data.filename
					}
				})
			},
			
		}
	};
</script>

<style>
	@import url("./index.css");
</style>